<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>8.1Vue3基础-Vue3是什么</title>
  <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
  <div id="app">
    {{msg}}
    <ul>
      <li v-for="(item,index) in list">
        {{item.id}}-{{item.name}}-{{item.age}}
      </li>
    </ul>
  </div>
  <div id="test"></div>
  <script>
    const app = Vue.createApp({
      data(){
        return {
          msg: 'hello world',
          list: [
            {id: 1,name: '张三',age: 18},
            {id: 2,name: '李四',age: 20}
          ]
        }
      }
    })
    const vm = app.mount("#app")
    // let dom = document.getElementById("test")
    // dom.innerText = "hello world"
  </script>
</body>
</html>